package xdu.lz.stage2_design_pattern.chapter4_shared_resource_pattern;

public class Client {
    public static void main(String[] args) {
        Gate gate = new Gate();
        User bj = new User("b", "beijing", gate);
        User sh = new User("s", "shanghai", gate);
        User gz = new User("g", "guangzhou", gate);
        bj.start();
        sh.start();
        gz.start();
    }
}
